<template>
<div>
  <h2>Music</h2>
  <p>{{$store.state.num}}</p>
  <p>{{$store.getters.doubleNum}}</p>
  <button @click="$store.dispatch('incrementWait')">延迟1秒加一</button>
  <button @click="$store.dispatch('incrementNWait',{n:2})">延迟1秒加n</button>
</div>
</template>


<script>
export default {
  name:"Music"
}
</script>


<style></style>